home *** CD-ROM | disk | FTP | other *** search
- package Boxe;
-
- import com.siemens.mp.game.GraphicObjectManager;
- import javax.microedition.lcdui.Canvas;
-
- abstract class CScreen extends Canvas implements Runnable {
- protected final int GAME_SCREEN_WIDTH = ((Canvas)this).getWidth();
- protected final int GAME_SCREEN_HEIGHT = ((Canvas)this).getHeight();
- int _frame_cpt = 0;
- short _y_offset;
- boolean _alive = true;
- GraphicObjectManager _gfxManager;
- boolean _pause = true;
- boolean _show_fps = false;
- int _nb_frame;
- long _frame_tick;
- int _fps;
-
- CScreen() {
- this._pause = false;
- }
-
- public void hideNotify() {
- this._pause = true;
- }
-
- public void showNotify() {
- this._pause = false;
- }
-
- public void Show() {
- this._pause = false;
- }
-
- public void Hide() {
- }
-
- abstract void Render();
-
- void Dispose() {
- this._alive = false;
- this._pause = true;
- }
-
- public abstract void run();
- }
-